package com.cxh.mybatis.pwo.controller;

import com.cxh.mybatis.pwo.entity.WorkOrder;
import com.cxh.mybatis.pwo.service.WorkOrderService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 订单
 *
 * @author cxh
 * @date 2024年08月05日 17:04
 */
@RestController
public class WorkOrderController {

    @Resource
    private WorkOrderService workOrderService;

    /**
     * 获取所有订单
     *
     * @return
     */
    @GetMapping("/pwo/get-order-list")
    public List<WorkOrder> getOrderList() {
        return workOrderService.getOrderList();
    }

}
